package com.attendance.entity.dto;

import java.util.Date;

import com.attendance.entity.Leave;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.staff.entity.Staff;

public class LeaveDTO {
	private Long id;
	private String staffName;
	private String staffNum;
	private String department;
	private Date startTime;
	private Date endTime;
	private float totalTime;
	private String auditor;
	
	public LeaveDTO(Staff staff,Leave leave,String dept,String auditor) {
		super();
		this.id = leave.getId();
		this.staffName = staff.getStaffName();
		this.staffNum = staff.getStaffNum();
		this.department = dept;
		this.startTime = leave.getStartTime();
		this.endTime = leave.getEndTime();
		this.totalTime = leave.getTotalTime();
		this.auditor = auditor;
	}
	public LeaveDTO() {
		super();
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getStaffName() {
		return staffName;
	}
	public void setStaffName(String staffName) {
		this.staffName = staffName;
	}
	public String getStaffNum() {
		return staffNum;
	}
	public void setStaffNum(String staffNum) {
		this.staffNum = staffNum;
	}
	public String getDepartment() {
		return department;
	}
	public void setDepartment(String department) {
		this.department = department;
	}
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public Date getStartTime() {
		return startTime;
	}
	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}
	@JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss",timezone = "GMT+8")
	public Date getEndTime() {
		return endTime;
	}
	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}
	public String getAuditor() {
		return auditor;
	}
	public void setAuditor(String auditor) {
		this.auditor = auditor;
	}
	public float getTotalTime() {
		return totalTime;
	}
	public void setTotalTime(float totalTime) {
		this.totalTime = totalTime;
	}
	
	
}
